#ifndef _CONFIG_HPP_
#define _CONFIG_HPP_

namespace __mylog
{

// 设置日志消息输出默认格式
#define DEFAULT_FORMAT "[%t][%c][%n][%i][%f:%l]%T%m%N" 

// 这些是ColorConsoleSinker用到的颜色宏
#define RED_TEXT "\033[0;31m"
#define GREEN_TEXT "\033[0;32m"
#define YELLOW_TEXT "\033[0;33m"
#define BLUE_TEXT "\033[0;34m"
#define MAGENTA_TEXT "\033[0;35m"
#define RESET_COLOR_TEXT "\033[0m"

#define DEBUG_COLOR BLUE_TEXT
#define INFO_COLOR GREEN_TEXT
#define WARN_COLOR YELLOW_TEXT
#define ERROR_COLOR RED_TEXT
#define FATAL_COLOR MAGENTA_TEXT

// 设置默认异步缓冲区空间大小 1Mb
#define DEFAULT_BUFFER_LEN (1024 * 1024 * 1)

#define DEFAULT_LOGGER_NAME "default"

}

#endif